package gov.pbc.nn.core.http;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.bstek.dorado.core.Configure;

@WebListener
public class PbcHttpSessionListener implements HttpSessionListener {

	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
		arg0.getSession().setMaxInactiveInterval((int) Configure.getLong("max_session_timeout"));
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent arg0) {

	}

}
